import request from '@/utils/request'

export default {

    //添加小节
    addVideo(eduVideo){
        return request({
            url: `/eduservice/eduvideo/addVideo`,
            method: 'post',
            data:eduVideo
        })
    },
    //删除章节
    deleteVideoById(id){
        return request({
            url: `/eduservice/eduvideo/deleteVideoById/${id}`,
            method: 'delete',
        })
    },
    // 根据id获取章节信息
    getVideoById(id){
        return request({
            url: `/eduservice/eduvideo/getVideoById/${id}`,
            method: 'get',
        })
    },
    // 修改章节信息
    updateVideo(eduVideo){
        return request({
            url: `/eduservice/eduvideo/updateVideo`,
            method: 'post',
            data:eduVideo
        })
    },
}